//
//  DDAlertView.h
//  DongDongWedding
//
//  Created by 谢曦 on 16/9/12.
//  Copyright © 2016年 gl. All rights reserved.
//

#import "MMAlertView.h"
#import "MMSheetView.h"
//上面的弹出提醒框  下面是sheetview
//其他按钮传按钮名称数组 可以为nil
@interface XXAlertView : MMAlertView
//    DDAlertView *alert=   [DDAlertView DDAlertViewWithTitle:@"你确定要删除吗" detail:@"管的真多" redButtonTitle:@"确定" otherbuttonTitle:@[@"取消"]];
//    alert.DDAlertViewRedButtonClickBlock=^{
//        NSLog(@"okokok");
//    };
//    alert.DDAlertViewOtherButtonClickBlock=^(NSUInteger index){
//         NSLog(@"cancelcancel %d",index);
//    };
//    [alert showAlertView];

//block 可以不传  不传时默认为弹出框消失
+(XXAlertView *)alertViewWithTitle:(NSString *)title detail:(NSString *)detail redButtonTitle:(NSString *)redString otherbuttonTitle:(NSArray *)buttonStrings;
- (void)showAlertView;
@property (nonatomic,copy) void(^alertViewRedButtonClickBlock)();
@property (nonatomic,copy) void(^alertViewOtherButtonClickBlock)(NSUInteger index);

@end



@interface XXSheetView:  MMSheetView


//DDSheetView *sheet=[DDSheetView DDSheetViewWithTitle:@"你确定？" redButtonTitle:@"事多。。" otherbuttonTitle:nil];
//sheet.DDSheetViewRedButtonClickBlock=^{
//    NSLog(@"okokok");
//};
//sheet.DDSheetViewOtherButtonClickBlock=^(NSUInteger index){
//    NSLog(@"cancelcancel %d",index);
//};
//[sheet showSheetView];

//默认底部是取消按钮
+(XXSheetView *)sheetViewWithTitle:(NSString *)title redButtonTitle:(NSString *)redString otherbuttonTitle:(NSArray *)buttonStrings;
- (void)showSheetView;
@property (nonatomic,copy) void(^sheetViewRedButtonClickBlock)();
@property (nonatomic,copy) void(^sheetViewOtherButtonClickBlock)(NSUInteger index,NSString *title);
    @property (nonatomic,copy) NSString *defaultTextCancel;
@end
